<topicVersion>
  <topicName>TestPage</topicName>
  <wikiDir>WikiRoot\WikiDir\TestDir</wikiDir>
  <creator>jwd</creator>
  <createdOn>2013-03-01T05:50:50.451</createdOn>
  <version>22</version>
  <tags id="IronPython" />
  <tags id="SyntaxHighlighter" />
  <editReason />
  <wikiText>!!Level 2 Header for a New Page

Edit the content of this message to create your new page. Add tags as required and then save the page.

{@CSharp
    [TestClass]
    public class UnitTest1
    {
          [TestMethod]
          public void TestIronWikiSyntax()
          {
            WikiScriptEngine.Initialize();
            StringBuilder scriptSource = new StringBuilder();
            scriptSource.AppendLine("WikiSyntax = IronWikiSyntax()");
            scriptSource.AppendLine("so = ''");
            scriptSource.AppendLine("for iwc in WikiSyntax.IronWikiClasses :");
            scriptSource.AppendLine("    so = so + '||' + iwc.Name + '||' + iwc.Description + '||\r\n'");
            scriptSource.AppendLine("ScriptOutput = so");
            //scriptSource.AppendLine("");
            //scriptSource.AppendLine("");

            string result = WikiScriptEngine.ExecuteBehavior(scriptSource.ToString());
            
            Assert.IsNotNull(result);
          }
    }
}@


@@
WikiSyntax = IronWikiSyntax()
so = UtilityProperties.Now + UtilityProperties.Newline
for iwc in WikiSyntax.IronWikiClasses :
    so = so + '||' + iwc.Name + '||' + iwc.Description + '''||\r\n'''
for iwb in WikiSyntax.IronWikiMembers :
    so = so + '||' + iwb.Name + '||' + iwb.Description + '||' + iwb.ParentClassName + '||' + UtilityProperties.Newline
ScriptOutput = so
@@

        1. This is the start of a numbered list
        1. The second list item
                1. The first item of a numbered sub-list
                1. The second sub item
                1. Third sub item
        1. The third list item
        1. Fourth list item</wikiText>
  <body>&lt;WomDocument&gt;
&lt;BaseTopic&gt;http://localhost/LynxWiki/WikiTopic/Index&lt;/BaseTopic&gt;
&lt;BaseEdit&gt;http://localhost/LynxWiki/WikiTopic/Page&lt;/BaseEdit&gt;
&lt;BaseImage&gt;http://localhost/LynxWiki/images/&lt;/BaseImage&gt;
&lt;SiteUrl&gt;http://localhost/LynxWiki/&lt;/SiteUrl&gt;
&lt;InputDoc&gt;&lt;/InputDoc&gt;
&lt;Header level="2"&gt;
&lt;womHeaderText&gt;Level 2 Header for a New Page&lt;/womHeaderText&gt;&lt;AnchorText&gt;_1_Level_2_Header_for_a_New_Page&lt;/AnchorText&gt;&lt;/Header&gt;
&lt;Para&gt;&lt;paraText&gt;Edit the content of this message to create your new page. Add tags as required and then save the page.&lt;/paraText&gt;&lt;/Para&gt;
&lt;PreformattedMultilineCSharp&gt;&lt;womMultilineCode&gt;
    [TestClass]
    public class UnitTest1
    {
	  [TestMethod]
	  public void TestIronWikiSyntax()
	  {
	    WikiScriptEngine.Initialize();
	    StringBuilder scriptSource = new StringBuilder();
	    scriptSource.AppendLine("WikiSyntax = IronWikiSyntax()");
	    scriptSource.AppendLine("so = ''");
	    scriptSource.AppendLine("for iwc in WikiSyntax.IronWikiClasses :");
	    scriptSource.AppendLine("    so = so + '||' + iwc.Name + '||' + iwc.Description + '||\r\n'");
	    scriptSource.AppendLine("ScriptOutput = so");
	    //scriptSource.AppendLine("");
	    //scriptSource.AppendLine("");
	    string result = WikiScriptEngine.ExecuteBehavior(scriptSource.ToString());
	    
	    Assert.IsNotNull(result);
	  }
    }
&lt;/womMultilineCode&gt;
&lt;/PreformattedMultilineCSharp&gt;
&lt;Para&gt;&lt;WikiTalkString&gt;@@
WikiSyntax = IronWikiSyntax()
so = UtilityProperties.Now + UtilityProperties.Newline
for iwc in WikiSyntax.IronWikiClasses :
    so = so + '||' + iwc.Name + '||' + iwc.Description + '''||\r\n'''
for iwb in WikiSyntax.IronWikiMembers :
    so = so + '||' + iwb.Name + '||' + iwb.Description + '||' + iwb.ParentClassName + '||' + UtilityProperties.Newline
ScriptOutput = so
@@&lt;/WikiTalkString&gt;&lt;/Para&gt;
&lt;list type="ordered"&gt;&lt;item&gt;
&lt;womListText&gt; This is the start of a numbered list&lt;/womListText&gt;&lt;/item&gt;
&lt;item&gt;
&lt;womListText&gt; The second list item&lt;/womListText&gt;&lt;list type="ordered"&gt;&lt;item&gt;
&lt;womListText&gt; The first item of a numbered sub-list&lt;/womListText&gt;&lt;/item&gt;
&lt;item&gt;
&lt;womListText&gt; The second sub item&lt;/womListText&gt;&lt;/item&gt;
&lt;item&gt;
&lt;womListText&gt; Third sub item&lt;/womListText&gt;&lt;/item&gt;
&lt;/list&gt;&lt;/item&gt;
&lt;item&gt;
&lt;womListText&gt; The third list item&lt;/womListText&gt;&lt;/item&gt;
&lt;item&gt;
&lt;womListText&gt; Fourth list item&lt;/womListText&gt;&lt;/item&gt;&lt;/list&gt;
&lt;/WomDocument&gt;
</body>
  <denyRole id="Test" />
</topicVersion>